class Landmarks < ActiveRecord::Base
  belongs_to :package

  validates_presence_of :lat
  validates_presence_of :lng
  validates_presence_of :name
  validates_presence_of :description

  has_attachment :content_type => :image,\
	  :storage => :file_system,\
	  # high limit, but these are resized pretty small
	  :max_size => 3.megabytes,\
	  :size => 0..3.megabytes,\
	  :resize_to => '200x200>',\
  	  #don't want to use public/landmarks/
  	  :path_prefix => 'public/landmark_images'

  validates_as_attachment

end
